package com.weactivity.mapper;

import com.weactivity.entity.Report;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ReportMapper {
    @Insert("insert into activity_report (aid, o_uid, m_uid, aver_evaluate_a, aver_evaluate_m, aver_evaluate_o, time) " +
    "value (#{aid},#{oUid},#{mUid},#{averEvaluateA},#{averEvaluateM},#{averEvaluateO},#{time})")
    void insert(Report report);

    @Select("select * from activity_report where aid = #{aid}")
    Report findByAid(int aid);
}
